-- aid_attrib2
-- create by panyl
-- 辅助属性，对他人属性提升N%，最少提升1点

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        if ActivityDungeonM.isInActivityDungeon() then
            -- 战争光环
            desc = string.gsub(getLocStr("knight_monster_aid_desc"),
                "{0}", tostring(prop[3]));
        end

        return desc;
    end,

    title = function(prop)
        local row = PropM.getRow(prop[1]);
        if ActivityDungeonM.isInActivityDungeon() then
            -- 战争光环技能名称
            return SkillM.query(2215, "name");
        end

        return row.alias;
    end,

    record = function(target, prop, path)
        return false;
    end
};
